Optimal. Leaf size=18 \[ \frac{\sin (x)}{a}-\frac{\sin ^3(x)}{3 a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0496366, antiderivative size = 18, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.125, Rules used = {3175, 2633} \[ \frac{\sin (x)}{a}-\frac{\sin ^3(x)}{3 a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3175
Rule 2633
Rubi steps
\begin{align*} \int \frac{\cos ^5(x)}{a-a \sin ^2(x)} \, dx &=\frac{\int \cos ^3(x) \, dx}{a}\\ &=-\frac{\operatorname{Subst}\left (\int \left (1-x^2\right ) \, dx,x,-\sin (x)\right )}{a}\\ &=\frac{\sin (x)}{a}-\frac{\sin ^3(x)}{3 a}\\ \end{align*}
Mathematica [A] time = 0.003115, size = 19, normalized size = 1.06 \[ \frac{\frac{3 \sin (x)}{4}+\frac{1}{12} \sin (3 x)}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.033, size = 14, normalized size = 0.8 \begin{align*}{\frac{1}{a} \left ( -{\frac{ \left ( \sin \left ( x \right ) \right ) ^{3}}{3}}+\sin \left ( x \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.01401, size = 19, normalized size = 1.06 \begin{align*} -\frac{\sin \left (x\right )^{3} - 3 \, \sin \left (x\right )}{3 \, a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.34708, size = 39, normalized size = 2.17 \begin{align*} \frac{{\left (\cos \left (x\right )^{2} + 2\right )} \sin \left (x\right )}{3 \, a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 16.3355, size = 124, normalized size = 6.89 \begin{align*} \frac{6 \tan ^{5}{\left (\frac{x}{2} \right )}}{3 a \tan ^{6}{\left (\frac{x}{2} \right )} + 9 a \tan ^{4}{\left (\frac{x}{2} \right )} + 9 a \tan ^{2}{\left (\frac{x}{2} \right )} + 3 a} + \frac{4 \tan ^{3}{\left (\frac{x}{2} \right )}}{3 a \tan ^{6}{\left (\frac{x}{2} \right )} + 9 a \tan ^{4}{\left (\frac{x}{2} \right )} + 9 a \tan ^{2}{\left (\frac{x}{2} \right )} + 3 a} + \frac{6 \tan{\left (\frac{x}{2} \right )}}{3 a \tan ^{6}{\left (\frac{x}{2} \right )} + 9 a \tan ^{4}{\left (\frac{x}{2} \right )} + 9 a \tan ^{2}{\left (\frac{x}{2} \right )} + 3 a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.13555, size = 19, normalized size = 1.06 \begin{align*} -\frac{\sin \left (x\right )^{3} - 3 \, \sin \left (x\right )}{3 \, a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]